<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * 短信模版
 */
class CreateSmsTpl extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('smstpl', function (Blueprint $table) {
            $table->increments('id');
            $table->string('content',500)->default('')->comment('短信模版内容');
            $table->tinyInteger('config_id')->comment('公共配置ID,含义为短信服务商');
            $table->string('module',500)->nullable()->comment('短信模块,一个服务商 模块数据只允许有一条 register=注册 refound=找回密码  bind=绑定账户  ');
            $table->string('serviceId',20)->nullable()->comment('短信服务商模版ID');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('smstpl');
    }
}
